namespace Maple.Branch.Identity.Mappings
{
    using AutoMapper;
    using Dtos;
    using Entities;

    public class MapperProfile : Profile
    {
        public MapperProfile()
        {
            CreateMap<IdentityUser, IdentityUserDto>()
                .MapExtraProperties();

            CreateMap<IdentityRole, IdentityRoleDto>()
                .MapExtraProperties();

            CreateMap<IdentityUser, ProfileDto>()
                .MapExtraProperties();
        }
    }
}
